package com.huawei.hianalytics.ab.bc.ef;

import android.util.Log;
import com.huawei.hianalytics.ab.gh.ab;

public class bc {
    private boolean ab = false;
    private int bc = 4;

    private static String ab() {
        return "HiAnalyticsSDK_2.2.0.301" + ab.ab();
    }

    public void ab(int i) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append('\n');
        stringBuilder.append("=======================================\n ").append(ab()).append("").append("\n=======================================");
        Log.i("HiAnalyticsSDK", stringBuilder.toString());
        this.bc = i;
        this.ab = true;
    }

    public void ab(int i, String str, String str2) {
        bc(i, "HiAnalyticsSDK", str + "=> " + str2);
    }

    public void bc(int i, String str, String str2) {
        switch (i) {
            case 3:
                Log.d(str, str2);
                return;
            case 4:
                Log.i(str, str2);
                return;
            case 5:
                Log.w(str, str2);
                return;
            case 6:
                Log.e(str, str2);
                return;
            default:
                Log.i(str, str2);
                return;
        }
    }

    public boolean bc(int i) {
        return this.ab && i >= this.bc;
    }
}
